-
Notifications
You must be signed in to change notification settings - Fork 85
Add .rcond() and .rcond_into() #90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This commit also changes the character representations of `NormType` to capital letters to be compatible with `*gecon`.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good :)
Please use opnorm_one
instead of opnorm(One)
since the type of the norm is fixed.
tests/solve.rs
Outdated
@@ -5,6 +5,7 @@ extern crate num_traits; | |||
|
|||
use ndarray::*; | |||
use ndarray_linalg::*; | |||
use ndarray_linalg::lapack_traits::opnorm::NormType; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use opnorm_one
. not to import lapack_traits
src/solve.rs
Outdated
A::rcond( | ||
self.a.layout()?, | ||
self.a.as_allocated()?, | ||
self.a.opnorm(NormType::One)?, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use opnorm_one
src/lapack_traits/opnorm.rs
Outdated
@@ -8,9 +8,9 @@ use types::*; | |||
|
|||
#[repr(u8)] | |||
pub enum NormType { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move to src/lapack_traits/mod.rs
like UPLO
Good catch on the I moved |
Thanks!
I make it public. |
This commit exposes the LAPACK
*gecon
routines through.rcond()
and.rcond_into()
methods. It also changes the character representations ofNormType
to capital letters to be compatible with*gecon
.